Skip to content

feat: Implement enhancements for new design #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: feat/new-design
Choose a base branch
from

Conversation

MoritzWeber0
Copy link
Member

I tried to split the different parts into different commits, so that we can easily take out some individual parts.

Copy link

netlify bot commented Jun 12, 2025

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit ba78057
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/68507d8e24bb9f000876ebfe
😎 Deploy Preview https://deploy-preview-192--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fipguide fipguide deleted a comment from netlify bot Jun 12, 2025
@MoritzWeber0 MoritzWeber0 mentioned this pull request Jun 12, 2025
3 tasks
@MoritzWeber0 MoritzWeber0 marked this pull request as ready for review June 12, 2025 20:11
Copy link
Member

@therobrob therobrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've some questions and comments about your suggestions. to resolve them, it seems cool to talk about it, i think :)

Comment on lines +188 to +196
margin-bottom: 2rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;

@media (max-width: #{$breakpoint-md}) {
display: flex;
flex-direction: column;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What added value does it have compared to Bootstrap?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a few advantages:

  • Reduced bundle size when removing Bootstrap completely, initially discussed here: Check necessity of bootstrap #74 (comment). If we still want to get rid of Bootstrap, I'd slowly decrease the dependency and at least leave it out from newly introduced code.
  • Native DevTools support. Chrome and Firefox have some neat development tools around grid layout. The devtools didn't work with the bootstrap grid layout.
  • Less chance of breaking changes. Bootstrap is under active development and can introduce breaking changes. CSS itself is considered as rather stable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to my understanding, the discussion is about using bootstrap not as an depency, but as local css rules. If you want to remove bootstrap in total, we should do this in a separate branch and not accorded to this feature branch. There are many more occurencies, which have to be replaced either.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just thought that it makes sense to avoid Bootstrap for newly added content to reduce effort for the migration. But since I've done it in a separate commit anyway, I'll take it out and move it into a separate PR.

Comment on lines 222 to 249
.o-startpage__shortcut-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr 3fr;
gap: 2rem;
margin-bottom: 2rem;

@media (max-width: #{$breakpoint-md}) {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}

}

.o-startpage__search {
margin-bottom: 2rem;
width: 100%;
}

.o-startpage__news-teaser-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 2rem;

@media (max-width: #{$breakpoint-md}) {
display: flex;
flex-direction: column;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What added value does it have compared to Bootstrap?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some as here: #192 (comment)

Comment on lines +74 to +75
object-fit: cover;
height: 100%;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my opinion, we should show the images always in aspect-ratio 16/9. Don't you think so?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree here :)

Let's have a look at the news list with a viewport that has a width of 850px.

This is the previous version:
image

I can see mainly two issues here:

  1. The images have a small white line at the bottom because they can't fit properly.
  2. The text preview is very limited.

Number 1 is probably easily fixable. Number 2 is more challenging: When I increase the preview lines, the height increases. When we would preserve the image ratio now, the width would also increase and takes away the space that I would use for the content preview.

In the updated version, I have three preview lines. The aspect ratio is not 16:9 anymore, but because of the CSS object-fitting, it just zooms in slightly. Still looks good in my opinion.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are two separate aspects of it:

  1. Using 16/9 aspect ratio
  2. Prevention of whitespace

Do you think, there is no way / no need to keep 16/9? Otherwise we lose control over the shown part of the image :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that there is a necessity to have an image ratio of 16/9. I would rather formulate the requirement as "The images should be displayed in a 16/9 ratio", so try to make it work where it works out. Most of the images don't depend on a specific parts of the image.

I believe we're talking about a user group of less than 5% anyway (only users with a screen width between 768px and 992px see the images in a another screen ratio than 16/9). For those users, we have one of the following options:

  1. Only show a part of the image like it's the case in my proposal.
  2. Don't show the image at all for the specific screen width range.
  3. Reduce the text to display (not three lines, but make an exception for the specific screen width range) like it's the case in your proposal, but would need some refinement to avoid the white space.

What do you think about the proposal to keep number 1, but take it as discussion point to the next meeting. Then we can also hear the other opinions and come to a conclusion. I'd also implement whatever we decide on.

@MoritzWeber0 MoritzWeber0 requested a review from therobrob June 17, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants